#include "devicemanager.h"

int createDevices()
{
    discoveredDevices = fp_discover_devs();
    nrOfDiscoveredDevices = 0;
    while(discoveredDevices[nrOfDiscoveredDevices] != NULL)
    {
        nrOfDiscoveredDevices++;
    }

    qDebug() << nrOfDiscoveredDevices << " devices found";
    fp_dscv_devs_free(discoveredDevices);

    return nrOfDiscoveredDevices;
}
